/*******************************************************************************
 * Copyright (c) 2013, 2025 Lablicate GmbH.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 * 
 * Contributors:
 * Philip Wenig - initial API and implementation
 *******************************************************************************/
package org.eclipse.chemclipse.xxd.model.quantitation;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import org.eclipse.chemclipse.model.quantitation.IQuantitationPeak;
import org.eclipse.chemclipse.msd.model.implementation.QuantitationPeakMSD;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.TestInstance.Lifecycle;

@TestInstance(Lifecycle.PER_CLASS)
public class QuantitationPeakMSD_1_Test extends ReferencePeakMSDTestCase {

	private IQuantitationPeak quantitationPeakMSD;

	@Override
	@BeforeAll
	public void setUp() {

		super.setUp();
		quantitationPeakMSD = new QuantitationPeakMSD(getReferencePeakMSD_TIC_1(), 0.67d, "mg/ml");
	}

	@Test
	public void testGetConcentration_1() {

		assertEquals(0.67d, quantitationPeakMSD.getConcentration(), 0);
	}

	@Test
	public void testGetConcentrationUnit_1() {

		assertEquals("mg/ml", quantitationPeakMSD.getConcentrationUnit());
	}

	@Test
	public void testGetReferencePeakMSD_1() {

		assertNotNull(quantitationPeakMSD.getReferencePeak());
	}
}
